#pragma once

#include "ReportPreview.h"
#include "TimeZone.h"

// CDlgReport dialog

class CDlgViewerBG;
class CDlgReport : public CDialog
{
	DECLARE_DYNAMIC(CDlgReport)

private:
	PRINTINFO			m_PrintInfo;
	REPORT_ITEM			m_ReportItem;
	CTimeZone			m_Timezone;


public:
	CDlgReport(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgReport();

	void SetReportItem(PREPORT_ITEM pItem);

// Dialog Data
	enum { IDD = IDD_REPORT };

private:
	CStatic m_staticPreview;

	CStringArray m_sarrText;
	CDlgViewerBG *m_pViewerSetup;

	void LoadText();

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg void OnBnClickedBtnInsertMemo();
	afx_msg void OnBnClickedBtnPrint();
	afx_msg void OnBnClickedCancel();
	DECLARE_MESSAGE_MAP()

public:
	void SetViewerSetup(CDlgViewerBG *pViewerSetup) { m_pViewerSetup = pViewerSetup; };
	
	
};
